
package com.webwork.common.dataobject;

import java.text.SimpleDateFormat;

/**
 * 日期格式类
 *
 */
public final class DateFormat {

	/**
	 * yyyyMMddHHmmss
	 */
	public static final String TIME_NUMBER_STR = "yyyyMMddHHmmss";
	/**
	 * yyyyMMdd
	 */
	public static final String DATE_NUMBER_STR = "yyyyMMdd";
	/**
	 * yyyy
	 */
	public static final String YEAR_STR = "yyyy";
	/**
	 * yyyy-MM
	 */
	public static final String MONTH_STR = "yyyy-MM";
	/**
	 * yyyy-MM-dd
	 */
	public static final String DATE_STR = "yyyy-MM-dd";
	/**
	 * yyyy-MM-dd HH:mm:ss
	 */
	public static final String TIME_STR = "yyyy-MM-dd HH:mm:ss";

	/**
	 * yyyy-MM-dd HH:mm:ss
	 */
	public static SimpleDateFormat Simple = new SimpleDateFormat(TIME_STR);
	
	/**
	 * yyyyMMddHHmmss
	 */
	public static SimpleDateFormat NUMBER = new SimpleDateFormat(TIME_NUMBER_STR);
	
	/**
	 * yyyyMMdd
	 */
	public static SimpleDateFormat SHORT_NUMBER = new SimpleDateFormat(DATE_NUMBER_STR);

	/**
	 * yyyy
	 */
	public static SimpleDateFormat YEAR = new SimpleDateFormat(YEAR_STR);
	
	/**
	 * yyyy-MM
	 */
	public static SimpleDateFormat MONTH = new SimpleDateFormat(MONTH_STR);
	
	/**
	 * yyyy-MM-dd
	 */
	public static SimpleDateFormat DAY = new SimpleDateFormat(DATE_STR);
	
}
